package org.stone.project;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.stone.project.url.service.TestService;
import reactivefeign.spring.config.EnableReactiveFeignClients;
import reactor.core.Disposable;

@SpringBootApplication
@EnableReactiveFeignClients
public class Demo {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(Demo.class);
        TestService bean = run.getBean(TestService.class);
        Disposable demo = bean.test1().subscribe(e -> {
            System.out.println("执行成功");
            System.out.println(e);
        });

        System.out.println(demo.isDisposed());
    }
}
